<?php

namespace App\Constants;

class CodeResponse {
    // 通用返回码
    const SUCCESS = [0,'成功'];
    const FAIL = [-1,'失败'];
    const PARAM_ILLEGAL = [401,'参数不合法'];
    const PARAM_VALUE_ILLEGAL = [401,'参数值不合法'];
    const SYS_FAIL = [500,'通用系统错误'];
    const UN_LOGIN = [501, '请登录'];
    const CREATED_FAIL = [504, '创建数据失败'];
    const UPDATED_FAIL = [505, '更新数据失败'];


    // 业务返回码
    const AUTH_INVALID_ACCOUNT = [700, '账号不存在'];
    const AUTH_CAPTCHA_FAILED = [701, '短信发送异常'];
    const AUTH_CAPTCHA_FREQUENCY = [702, '验证码未超时1分钟，不能发送'];
    const AUTH_CAPTCHA_UNMATCH = [703, '验证码错误'];
    const AUTH_NAME_REGISTERED = [704, '用户已注册'];
    const AUTH_MOBILE_REGISTERED = [705, '手机号已注册'];
    const AUTH_INVALID_MOBILE = [707, '手机号格式不正确'];
    const ADDRESS_NOT_EXIST = [708, '地址信息不存在'];

}
